Skip to main content
POST
/
api
/
portrait
/
enhance
/
try-on-clothes-refiner
Try on Clothes Refiner
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/enhance/try-on-clothes-refiner \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form task_type=async \
  --form person_image='@example-file' \
  --form top_garment='@example-file' \
  --form coarse_image='@example-file' \
  --form gender=man \
  --form bottom_garment='@example-file'
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "",
  "task_id": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
task_type
string

Task Type.

  • async: Asynchronous tasks.
  • Example:

    "async"

    person_image
    file

    Model image for calling the Try on Clothes API.

    top_garment
    file

    Top clothing image for calling the Try on Clothes API.

    coarse_image
    file

    Result image obtained from calling the Try on Clothes API.

    gender
    string

    Gender of the person_image.

  • woman: Female.
  • man: Male.
  • Example:

    "man"

    bottom_garment
    file

    Bottom clothing image for calling the Try on Clothes API.

    Response

    200 - application/json

    Success

    The response is of type object.